//
//  SD_ContactListPhoneDetail.m
//  GSD_WeiXin(wechat)
//
//  Created by 湖南机友科技有限公司 on 2018/3/23.
//  Copyright © 2018年 GSD. All rights reserved.
//

#import "SD_ContactListPhoneDetail.h"

@implementation SD_ContactListPhoneDetail

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

}
@end



//-(void)chooseImage{
//
//    //调用系统相册的类
//    UIImagePickerController *pickerController = [[UIImagePickerController alloc]init];
//    //设置选取的照片是否可编辑
//    pickerController.allowsEditing = YES;
//    //设置相册呈现的样式
//    UIAlertController *alertCtro=[UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
//
//    [alertCtro addAction:[UIAlertAction actionWithTitle:@"相机" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
//
//        //调取摄像头
//        pickerController.sourceType =  UIImagePickerControllerSourceTypeCamera;
//        [self presentViewController:pickerController animated:YES completion:nil];
//
//
//    }]];
//
//    [alertCtro addAction:[UIAlertAction actionWithTitle:@"相册" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
//        pickerController.sourceType =  UIImagePickerControllerSourceTypeSavedPhotosAlbum;//图片分组列表样式
//
//        [self presentViewController:pickerController animated:YES completion:nil];
//
//
//
//    }]];
//
//    [alertCtro addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
//
//
//        [self dismissViewControllerAnimated:YES completion:nil];
//
//    }]];
//
//    pickerController.delegate = self;
//    //使用模态呈现相册
//    [self presentViewController:alertCtro animated:YES completion:^{}];
//
//
//}
//
//-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info{
//
//    UIImage *resultImage = [info objectForKey:@"UIImagePickerControllerEditedImage"];
//    UIImage *image = [resultImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
//
//
//    NSInteger timeCount=[[HBValidateM getCurrentTimes] integerValue]/1000;
//
//    NSData *data = UIImageJPEGRepresentation(image, 1.0f);
//    NSString *encodedImageStr = [data base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
//
//    NSMutableDictionary *dictM=[NSMutableDictionary dictionary];
//
//    dictM[@"app_id"]=@"1106795032";
//    dictM[@"image"]=encodedImageStr ;
//    dictM[@"nonce_str"]=@"fa577ce340859f9fe";
//    NSString *timeStr=[NSString stringWithFormat:@"%zd",timeCount];
//    dictM[@"time_stamp"]=timeStr;
//    dictM[@"sign"]=@"";
//    dictM[@"app_key"]=@"zvVIWBt07Tl3uQlM";
//
//    //OCR --->
//    [HYBNetworking postWithUrl:@"https://api.ai.qq.com/fcgi-bin/ocr/ocr_generalocr" refreshCache:YES params:dictM success:^(id response) {
//
//        NSLog(@" OCR --->成功==== %@",response);
//
//
//        NSArray *dictArry=@[@{
//                                @"MobileCode":@"15111220570",
//                                @"Name":@"zengw",
//                                @"CommitContent":@"田农八部"
//                                }];
//
//        NSMutableDictionary *dictM=[NSMutableDictionary dictionary];
//
//        dictM[@"Id"]=[[NSUserDefaults standardUserDefaults]objectForKey:@"user_messageId"];
//        dictM[@"Token"]=[[NSUserDefaults standardUserDefaults]objectForKey:@"user_token"];
//        dictM[@"AddMobilePhoneDetails"]= [dictArry mj_JSONString];
//
//        // 上传拍照解析到的数据
//        [HYBNetworking postWithUrl:[NSString stringWithFormat:@"%@%@",host_api,AddMobilePhone_api] refreshCache:YES params:dictM success:^(id response) {
//
//            NSLog(@"拍照解析到的数据上传成功==== %@",response);
//        } fail:^(NSError *error) {
//
//            NSLog(@"拍照解析到的数据上传失败==== %@",error);
//        }];
//
//
//
//    } fail:^(NSError *error) {
//
//        NSLog(@"  OCR ---> %@",error);
//    }];
//
//
//    [self dismissViewControllerAnimated:YES completion:nil];
//
//}

